<html>
    <head>
        <title>Console Tester</title>
        <script>imagePath='../images/';wrroot='../';contextPath='../';bDebug=true</script>
        <script src=../qCore.js></script>
     </head>
     <body style='color: yellow; background: navy'>
        <script>
   
            _SCR_START="bodyLoaded()"
            
            bConsole=true
    	
	        function __start() {try{
	            if(bConsole){
	                startCons({cb:true,w:500,h:700,t:10,l:50,d:false})
	                _w.consoleLoaded = function consoleLoaded(){ setTimeout(_SCR_START,50) }
	            }else
	                eval(_SCR_START)
	        }catch(e){debugErr(e)}};__start()

            iCtr=0
            function bodyLoaded(){
//                __inter=setInterval("inter()",30)

                datePerfTest()
                
//                doPCTest()
                
//                doPCTest2()


            }
            function inter(){
                if(iCtr>60){
                    clearInterval(__inter)
                    iCtr=0
                    setTimeout("consoleLoaded()",30)
                }
                pc("Test i = "+(iCtr++))
            }
            function datePerfTest(){
                var iItr=100
//                q$.__pcNoDate=true
                __start=(new Date()).getTime()
                __()
                __end=(new Date()).getTime()
                iT = nToFixed((__end - __start)/1000, 3)
                pc(
                     "~Final Stats~"
                    +"\nWith Time: "+iT
                    +"\nSecs Per Line: "+nToFixed(iT/iItr,3)
                )
                function __(){ for(var i=0;i<iItr;i++) pc("Test i = "+i) }
            }
            
            function doPCTest(){
                f1()
                f2()
                f3()
                f4()   
            }
            function f1(){
                pc(">>>>")
                pc("<<<<")   
            }
            function f2(){
                pc(">>>>")
                pc("<<<<")   
            }
            function f3(){
                pc(">>>>")
                pc("<<<<")   
            }
            function f4(){
                pc(">>>>")
                pc("<<<<")   
            }
            function doPCTest2(){
                f1()
            }
            function f1(){
                pc(">>>>")
                f2()
                pc("<<<<")   
            }
            function f2(){
                pc(">>>>")
                f3()
                pc("<<<<")   
            }
            function f3(){
                pc(">>>>")
                f4()
                pc("<<<<")   
            }
            function f4(){
                pc(">>>>")
                pc("<<<<")   
            }
            
        </script>
        
	<script>
        bConsole=true; __qcOpts={cb:true, t:0, w: 600, h: 500}
	    _SCR_START=" bodyLoaded();"; function __start() {try{if(bConsole){startCons(__qcOpts); _w.consoleLoaded = function consoleLoaded(){ setTimeout(_SCR_START,50) }}else{eval(_SCR_START)}}catch(e){debugErr(e)}};__start()
    </script>
        
     </body>
</html>